CHARGING AND DISCHARGING OF CAPACITOR